package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Families;
import com.itheima.pojo.Member;

import java.util.List;

public interface MemberDao {

    Member findByTelephone(String telephone);

    void add(Member member);

    List<Families> findFamiliesByMemberId(Integer member_id);

    Member findById(Integer id);

    void edit(Member member);

    Integer findMemberCountBeforeDate(String date);

    Integer findMemberCountByDate(String date);

    Integer findMemberCountAfterDate(String date);

    Integer findMemberTotalCount();

    Member findMemByEMeilAndPsw(String checkmember, String password);

    Member findMemByIDCAndPsw(String checkmember, String password);

    Member findMemByPhoneAndPsw(String checkmember, String password);
}
